import request from "../api/request"

export const wxLogin = (data) => {
  return request({
    url: '/api/travelGraphy/auth/wxLogin',
    data: data,
    method: "POST",
  })
}


export const getSwiper = (data) => {
  return request({
    url: '/api/travelGraphy/common/dist/getSwiper?id=',
    data: data,
    method: "GET",
  })
}


export const queryMasterList = (data) => {
  return request({
    url: '/api/travelGraphy/common/master/queryMasterList',
    data: data,
    method: "GET",
  })
}






export const getWorklist = (data) => {
  return request({
    url: '/api/travelGraphy/common/work/getWorklist',
    data: data,
    method: "GET",
  })
}


export const getWorkDetail = (data) => {
  return request({
    url: '/api/travelGraphy/common/work/getWorkDetail',
    data: data,
    method: "GET",
  })
}

export const getEnsureList = (data) => {
  return request({
    url: '/api/travelGraphy/common/ensure/getEnsureList',
    data: data,
    method: "GET",
  })
}

export const placeOrder = (data) => {
  return request({
    url: '/api/travelGraphy/common/order/placeOrder',
    data: data,
    method: "POST",
  })
}

export const getPreOrder = (data) => {
  return request({
    url: '/api/travelGraphy/common/pay/getPreOrder',
    data: data,
    method: "POST",
  })
}


export const getMyOrderList = (data) => {
  return request({
    url: '/api/travelGraphy/common/order/getMyOrderList',
    data: data,
    method: "GET",
  })
}

export const cancelOrder = (data) => {
  return request({
    url: '/api/travelGraphy/common/order/cancelOrder',
    data: data,
    method: "POST",
  })
}

export const getOrderDetail = (data) => {
  return request({
    url: '/api/travelGraphy/common/order/getOrderDetail',
    data: data,
    method: "GET",
  })
}


export const refundOrder = (data) => {
  return request({
    url: '/api/travelGraphy/common/order/refundOrder',
    data: data,
    method: "POST",
  })
}


export const getBizConfList = (data) => {
  return request({
    url: '/api/travelGraphy/common/bizConf/getBizConfList',
    data: data,
    method: "GET",
  })
}

export const wxRefreshToken = (data) => {
  return request({
    url: '/api/travelGraphy/auth/wxRefreshToken',
    data: data,
    method: "GET",
  })
}